<tr data-id="<%= post.id %>">
  <td data-label="<%= t("models.post.fields.title", scope: "decidim.blogs") %>">
    <% if allowed_to? :update, :blogpost, blogpost: post %>
      <%= link_to translated_attribute(post.title), edit_post_path(post) %><br>
    <% else %>
      <%= translated_attribute(post.title) %><br>
    <% end %>
  </td>
  <td data-label="<%= t("models.post.fields.body", scope: "decidim.blogs") %>">
    <%= decidim_sanitize_editor post_description_admin(post) %>
  </td>
  <td data-label="<%= t("models.post.fields.author", scope: "decidim.blogs") %>">
    <%= translated_attribute(post.try(:author).try(:name)) %>
  </td>
  <td data-label="<%= t("models.post.fields.taxonomies", scope: "decidim.blogs") %>">
    <%= present(post).taxonomy_names.join(", ") %>
  </td>
  <% publish_data = publish_data(post.published_at) %>
  <td data-label="<%= t("models.post.fields.published_at", scope: "decidim.blogs") %>">
    <% if publish_data[:icon] .present? %>
      <%= with_tooltip(publish_data[:popup], title: publish_data[:popup], class: "left") { publish_data[:icon] } %>
    <% end %>
    <%= l post.published_at, format: :decidim_short %>
  </td>
  <td class="table-list__actions" data-label="<%= t("actions.title", scope: "decidim.blogs") %>">
    <%= render partial: "decidim/blogs/admin/posts/actions", locals: { post:, view: } %>
  </td>
</tr>
